<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="vi">
    <head>
        <?php Yii::app()->clientScript->registerCoreScript('jquery'); ?>
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>     
        <meta charset="UTF-8" />
        <meta name="description" content="<?php echo $this->meta_desc; ?>" />
        <meta name="keywords" content="<?php echo $this->meta_keywords; ?>" />
        <meta name="DC.title" content="CHUNG CƯ ĐẸP" />
        <meta name="google-site-verification" content="cfR8JagOOAFgJmvZXntwFWoRMUyoGUiKTO_hRBYxpsU" />
        <meta name="geo.region" content="VN-HN" />
        <meta name="geo.position" content="14.058324;108.277199" />
        <meta name="ICBM" content="14.058324, 108.277199" />
        <?php if ($this->google_index == Post::STATUS_DRAFT): ?>
            <meta name="robots" content="noindex, follow"/>
        <?php endif; ?>
        <link href="<?php echo $this->assetDir ?>css/style.css" rel="stylesheet"/>
        <link href="<?php echo $this->assetDir ?>css/box_cate.css" rel="stylesheet"/>
        <link href="<?php echo $this->assetDir ?>css/bootstrap.css" rel="stylesheet"/>
        <link href="<?php echo $this->assetDir ?>css/bootstrap-responsive.css" rel="stylesheet"/>
        <link href="<?php echo $this->assetDir ?>css/glisse.css" rel="stylesheet"/>
        <link href="<?php echo $this->assetDir ?>css/app.css" rel="stylesheet"/>
        <link href="<?php echo $this->assetDir ?>css/sliderbank.css" rel="stylesheet"/>

        <?php if (Option::getItem('favicon')): ?>
            <link rel="SHORTCUT ICON" href="<?php echo Option::getItem('favicon') ?>"/>
        <?php endif; ?>
        <!--[if IE]>
            <style>
                   .profile-sub{z-index: 999}
                </style>
        <![endif]-->
        <script>
            var BASE_URL = '<?php echo Yii::app()->createUrl('/') ?>';
        </script>
        <style>
            @font-face {
                font-family: "Roboto";
                font-style: normal;
                font-weight: 400;   
                src: url("<?php echo $this->assetDir ?>font/Roboto.woff") format("woff");
            }
            @font-face {
                font-family: "Roboto";
                font-style: normal;
                font-weight: 700;
                src: url("<?php echo $this->assetDir ?>font/Roboto_700.woff") format("woff");
            } 
        </style>
    </head>
    <body>
        <div id="header">
            <div class="row-menu min-width-site">
                <div class="main-wrap">
                    <div class="row-fluid">
                        <div class="colum-left fl">
                            &nbsp;
                            <a href="<?php echo Yii::app()->createUrl('site/index') ?>" title="<?php echo Option::getItem('home_page') ?>">
                                <img class="web-logo" src="<?php echo Option::getItem('logo') ?>" alt="deltaGroup"/>
                            </a>
                        </div>
                        <div class="colum-right" id="cssmenu">
                            <ul>
                                <?php echo Menu::getCateShowMenu(Menu::POS_HEAD); ?>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row-cate min-width-site">
                <div class="main-wrap">
                    <div class="row-fluid">
                        <div class="colum-left fl">
                            &nbsp;
                        </div>
                        <div class="colum-right fl">
                            <div class="fl box-address">
                                <img class="fl" src="<?php echo $this->assetDir . 'img/bg/bg-adr.png' ?>" alt="deltagroup"/>
                                <div class="address fl">
                                    <?php
                                    if ($this->category)
                                    {
                                        echo $this->category;
                                    }
                                    else
                                    {
                                        echo 'Tìm kiếm';
                                    }
                                    ?>
                                </div>
                                <div class="clear"></div>
                            </div>
                            <form class="form-search" action="<?php echo $this->createUrl('post/search') ?>">
                                <div class="input-append">
                                    <input class="input-search" id="appendedInputButtons" type="text"  name="key" size="21" placeholder="Nhập từ tìm kiếm..."
                                           value="<?php echo isset($_GET['key']) ? $_GET['key'] : '' ?>" />
                                    <button class="btn btn-search"><img src="<?php echo $this->assetDir . "img/search_right.png" ?>" alt="deltagroup"/></button>
                                </div>
                            </form>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="content">
            <div class="main-wrap">
                <div class="fl colum-left cl-relative">
                    &nbsp;
                    <div class="cl-absolute">
                        <div id="box-cate" class="box-shadow-none">
                            <div id="name-box-cate" class="name">
                                <?php echo Option::getItem('name_box_cate'); ?>
                                <img alt="icon-category" class="ic-sub-cat" src="<?php echo $this->assetDir ?>img/icon_arrow2.png"/>
                                <div class="clear"></div>
                            </div>
                            <div class="br-r"></div>
                            <div class="clear"></div>
                            <ul id="box-category" class="hide">
                                <?php echo Category::getShowAllCate(); ?>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="content padding-bt-10" >
            <br>
                <div class="main-wrap">
                    <?php
                    if ($this->breadcrumbs)
                    {
                        $homeUrl = Yii::app()->createUrl("site/index");
                        $img     = $this->assetDir . 'img/bg/home.png';

                        $name = " <span><img alt='deltagroup' src='$img'> Trang chủ</span> ";
                        $this->widget('zii.widgets.CBreadcrumbs', array(
                            'homeLink'  => CHtml::link($name, $homeUrl),
                            'links'     => $this->breadcrumbs,
                            'separator' => ">",
                        ));
                    }
                    ?>
                </div>
        </div>
        <?php echo $content ?>
        <div id="wrap-conten" class="row-fluid">
            <div id="wrap">
                <div class="prev pull-left">
                    <div class="v6PreCatePage" id="v6PreCatePage67">
                        <a class="link_block" href="javascript:void(0)"></a>
                    </div>
                </div>
                <div class="slider pull-left">
                    <ul>
                        <?php foreach (Partner::getAllPartner() as $value): ?>
                            <li>
                                <a href="<?php echo $value->link ?>" target="_blank">
                                    <img src="<?php echo $value->photo ?>" alt="<?php echo MyUtil::vn_url_title($value->title) ?>">
                                </a>
                            </li>
                        <?php endforeach; ?>
                    </ul>
                </div>
                <div class="next">
                    <div class="v6NextCatePage" id="v6NextCatePage67">
                        <a class="link_block" href="javascript:void(0)"></a>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            /*<![CDATA[*/
            jQuery(function ($) {
                $(".slider").jCarouselLite({
                    btnNext: ".next",
                    btnPrev: ".prev",
                    auto: 3000,
                    speed: 1000,
                    visible: 7,
                    scroll: 7,
                    speed:1000,
                });
            });
            /*]]>*/
        </script>
        <footer class="min-width-site">
            <div id="footer1">                                            
                <div class="main-wrap">
                    <div class="row-fluid">
                        <div class="span12">
                            <h2 class="border-solid-footer">
                                <?php echo Option::getItem('company_name'); ?>
                            </h2>
                            <div class="contact">
                                <div class="item-contact">
                                    <img alt="icon-addres" class="fl" src="<?php echo $this->assetDir . "img/bg/home.png" ?>"/>
                                    <div class="fl">
                                        <?php echo Option::getItem('address'); ?>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                                <div class="item-contact">
                                    <img alt="icon-contact" class="fl" src="<?php echo $this->assetDir . "img/bg/phone1.png" ?>"/>
                                    <div class="fl">
                                        <?php echo Option::getItem('contact'); ?>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                            </div>
                        </div>
                        <!--                        <div class="span3">
                                                    <div class="menu-footer">
                                                        <div class="title-menu border-solid-footer">
                                                            Về chúng tôi
                                                        </div>
                                                        <ul class="list-item">
                        <?php // echo Menu::getCateShowMenu(Menu::POS_FOOTER_RIGHT, 'border-solid-footer'); ?>
                                                        </ul>
                                                    </div>
                                                </div>-->
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
            <div id="footer2">
                <div class="main-wrap">
                    <div  class="row-fluid">
                        <div class="span7">
                            Copyright © 2014 chungcudep.info. All Rights Reserved. Content by <a href="https://plus.google.com/113578379299693882733?rel=author">Khánh Hoàng</a>
                        </div>
                        <div class="span5">
                            Website được thiết kể bởi 
                            <a title="KTD SOFT" href="http://hoanganhdung.net">
                                KTDSOFT
                            </a>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
        </footer>
        <div id="scroll-top">
            <a href="#">
                <img src="<?php echo $this->assetDir ?>img/gotop.gif" alt="icon-gotop">
            </a>
        </div>

        <?php echo StatCounter::getCode(); ?>
        <?php echo Option::getItem('google_analytics') ?>
        <script>

            $("#box-cate").hover(function () {
                if ($("#box-category").is(":hidden")) {
                    $("#box-category").show();
                    $(this).removeClass('box-shadow-none');
                    $(this).removeClass('box-shadow-none');
                    $('.br-r').hide();
                } else {
                    $("#box-category").hide();
                    $(this).addClass('box-shadow-none');
                    $('.br-r').show();
                }
            });
        </script>
        <script src="<?php echo $this->assetDir ?>js/jcarousellite.js"></script>
        <script src="<?php echo $this->assetDir ?>js/main.js"></script>
    </body>
</html>
